<?php

// +----------------------------------------------------------------------
// | EasyAdmin
// +----------------------------------------------------------------------
// | PHP交流群: 763822524
// +----------------------------------------------------------------------
// | 开源协议  https://mit-license.org 
// +----------------------------------------------------------------------
// | github开源项目：https://github.com/zhongshaofa/EasyAdmin
// +----------------------------------------------------------------------

namespace app\model\api;

use laytp\BaseModel;
use think\model\concern\SoftDelete;

class GenshinAuthor extends BaseModel
{
    use SoftDelete;
    /**
     * 获取作者
     * @return array
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\DbException
     * @throws \think\db\exception\ModelNotFoundException
     */
    public function getAllAuthor($authorIds){
        $list = $this->where([['id','in',implode(',',$authorIds)]])
            ->column('author_name,author_head','id');
        return $list;
    }



}